using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class Start_UIManager : MonoBehaviour
{
    public GameObject settingPanel;
    public GameObject startCanvas;
    public GameObject buttonCase;
    public Transfer_Ctrl transfer_Ctrl;

    void Start(){
        startCanvas.SetActive(true);
        settingPanel.SetActive(false);
        transfer_Ctrl.Init();
    }

    public void OnSettingButtonClick(){
        settingPanel.SetActive(true);
    }

    public void OnStartGameButtonClick(){
        buttonCase?.SetActive(false);
        string sceneName = "Game";
        bool useTransfer = false;

        transfer_Ctrl?.StartSceneTransition(sceneName, ref useTransfer);
        if(!useTransfer){
            SceneManager.LoadScene(sceneName);
        }
    }
}
